/* pl-abstract-file-reader.vala
 *
 * Copyright (C) 2010  Jörn Magens
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  The Xnoise authors hereby grant permission for non-GPL compatible
 *  GStreamer plugins to be used and distributed together with GStreamer
 *  and Xnoise. This permission is above and beyond the permissions granted
 *  by the GPL license by which Xnoise is covered. If you modify this code
 *  you may extend this exception to your version of the code, but you are not
 *  obligated to do so. If you do not wish to do so, delete this exception
 *  statement from your version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 *
 * Author:
 *     Jörn Magens <shuerhaaken@googlemail.com>
 */


namespace Xnoise.Playlist {
    // abstract base class for all playlist filereader implementations
    private abstract class AbstractFileReader : GLib.Object {
        // relative paths from playlists are turnedinto absolute paths, by using base path
        protected string base_path;
         
        public signal void started(string playlist_uri);
        public signal void finished(string playlist_uri);

        public abstract EntryCollection read(File file, Cancellable? cancellable = null) throws InternalReaderError;
        public abstract async EntryCollection read_asyn(File file, Cancellable? cancellable = null) throws InternalReaderError;

        protected abstract void set_base_path();
    }
}

